require('./PageParentaward.styl');
const classNames = require("classnames")
const reactMixin = require('react-mixin');
const Actions = require('./actions');
const Store = require('./store');
import { Control } from 'react-keeper';
import { Boxs, NavBar,Context } from 'saltui';
import ui from 'clientConfig/util/jsapi/ui';
const { HBox, Box, VBox } = Boxs;
const Rollup = require('components/rollup');
const Listitem = require('components/listitem');
const WithRefresh = require('components/withrefresh');
const PendingList = require('components/pendinglist');
const ListWithAward = WithRefresh(
    PendingList,
    (pageNum, props, success, error) => {
        Actions.fetchAwardList(pageNum, props, success, error)
    }
);
class Parentaward extends React.Component {

    constructor(props) {
        super(props);
        this.state = {
        };
    }
    handleOnLeftClick() {
        ui.close();
    }
    render() {
        return (
            <div className="parentaward">
                 <NavBar
                    className={classNames({"ios-nav-bar":window.isIphone})}
                    isShow={false}
                    title='学生奖励'
                    onLeftClick={this.handleOnLeftClick.bind(this)}
                    onRightClick={Context.noop}
                    rightText=''
                />
                    <ListWithAward
                        className="msg"
                        ref="ListWithAward"
                        leftSlip={false}
                        classId={this.state.classId}
                    />
            </div>
        );
    }

    componentWillMount() {
    }

    componentDidMount() {
    }

    componentWillReceiveProps(nextProps) {
    }

    shouldComponentUpdate(nextProps, nextState) {
        return true;
    }

    componentWillUpdate(nextProps, nextState) {
    }

    componentDidUpdate(prevProps, prevState) {
    }

    componentWillUnmount() {
    }
}

reactMixin.onClass(Parentaward, Reflux.connect(Store, 'Parentaward'));

module.exports = Parentaward;
